#version 460
#extension GL_ARB_separate_shader_objects : enable
#extension GL_ARB_shading_language_420pack : enable
//#extension GL_GOOGLE_include_directive : enable

//#include "../CppMacros.h"

//文字的图片，只有一个通道
layout (set=0,binding = 0) uniform sampler2D CharTexture;

// #include "TextWidgetChar.h"
// layout (set=0,binding = 1) uniform STextInfo
// {
//    CharInfo CharInfos[CHAR_BATCH_SIZE];
// } TextInfo;

layout (location = 0) in vec2 InUV;
layout (location = 1) in vec4 InColor;

layout (location = 0) out vec4 OutColor;

void main() 
{
   vec4 TextureColor=textureLod(CharTexture, InUV, 0.0);
   OutColor =InColor *TextureColor.r;
}


